/*
 * queue.h
 *
 *  Created on: Apr 2, 2012
 *      Author: Tri_D
 */

#ifndef QUEUE_H_
#define QUEUE_H_

#include "main header.h"

typedef struct _que_512								// Communication data queue
{
	volatile uint16_t newest;
	volatile uint16_t oldest;
	volatile uint8_t que[512];	
} que_512;


void init_que512(que_512 *q);
void put_que512(que_512 *q, uint8_t c);
uint8_t get_que512(que_512 *q);
uint16_t que_count512(que_512 *q);
BOOL get_chr512(que_512 * q, uint8_t * pd);


#endif /* QUEUE_H_ */
